import request from '@/utils/request'

// 创建计划申请修改
export function createArrangeEdit(data) {
  return request({
    url: '/youqu/arrange-edit/create',
    method: 'post',
    data: data
  })
}

// 更新计划申请修改
export function updateArrangeEdit(data) {
  return request({
    url: '/youqu/arrange-edit/update',
    method: 'put',
    data: data
  })
}

// 删除计划申请修改
export function deleteArrangeEdit(id) {
  return request({
    url: '/youqu/arrange-edit/delete?id=' + id,
    method: 'delete'
  })
}

// 获得计划申请修改
export function getArrangeEdit(id) {
  return request({
    url: '/youqu/arrange-edit/get?id=' + id,
    method: 'get'
  })
}

// 获得计划申请修改分页
export function getArrangeEditPage(query) {
  return request({
    url: '/youqu/arrange-edit/page',
    method: 'get',
    params: query
  })
}

// 导出计划申请修改 Excel
export function exportArrangeEditExcel(query) {
  return request({
    url: '/youqu/arrange-edit/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
